﻿package com
{
	import com.phpnet.table;

	
	
	/**
	 * 单例模式类
	 */
	public class Remoting 
	{		
		private var _nuTables:table = null;	
		/**
		 * 构造
		 */
		public function Remoting(single:Single) 
		{
			_nuTables = new table();
		}
		
		
		//------------------------------------------------------------------------------------------------------//		

		public function get nuTables():table
		{
			return _nuTables;
		}

		public function set nuTables(value:table):void
		{
			_nuTables = value;
		}

		/**
		 * 单例引用
		 */
		public static function get instance():Remoting
		{
			if(_instance == null)
			{
				_instance = new Remoting(new Single());
			}
			return _instance;
		}
		
		private static var _instance:Remoting = null;		
		
	}
	
}
class Single{}